


Ext.define('prac.controller.prac_controller',{
	extend: 'Ext.app.Controller',
	stores: ['prac_store'],
    models: ['prac_model'],
	views: ['prac_form','prac_grid'],
	
	init: function(){
		this.control({
			'panel form button[action="saveData"]' : {
				click : this.onButtonOfSave,
				scope : this
			},
			
			'panel form button[action="cancelData"]' : {
				click : this.onButtonOfCancel,
				scope: this
			}
		});
		
	},

	onButtonOfSave : function(){
			action : 'test-insert',
	
		this.getForm().submit();
	},
	
	onButtonOfCancel : function(){
		this.getForm().reset();
	}
	

});
	